package com.ruoyi.compensationManagement.service.impl;
import java.util.List;

import com.ruoyi.compensationManagement.domain.CompensationRetireeSubsidyProject;
import com.ruoyi.compensationManagement.mapper.CompensationRetireeSubsidyProjectMapper;
import com.ruoyi.compensationManagement.service.ICompensationRetireeSubsidyProjectService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 退休人员补贴项目设置Service业务层处理
 *
 * @author ruoyi
 * @date 2022-10-07
 */
@Service
public class CompensationRetireeSubsidyProjectServiceImpl implements ICompensationRetireeSubsidyProjectService
{
    @Autowired
    private CompensationRetireeSubsidyProjectMapper compensationRetireeSubsidyProjectMapper;

    /**
     * 查询退休人员补贴项目设置
     *
     * @param subsidyprojectId 退休人员补贴项目设置主键
     * @return 退休人员补贴项目设置
     */
    @Override
    public CompensationRetireeSubsidyProject selectCompensationRetireeSubsidyProjectBySubsidyprojectId(Long subsidyprojectId)
    {
        return compensationRetireeSubsidyProjectMapper.selectCompensationRetireeSubsidyProjectBySubsidyprojectId(subsidyprojectId);
    }

    /**
     * 查询退休人员补贴项目设置列表
     *
     * @param compensationRetireeSubsidyProject 退休人员补贴项目设置
     * @return 退休人员补贴项目设置
     */
    @Override
    public List<CompensationRetireeSubsidyProject> selectCompensationRetireeSubsidyProjectList(CompensationRetireeSubsidyProject compensationRetireeSubsidyProject)
    {
        return compensationRetireeSubsidyProjectMapper.selectCompensationRetireeSubsidyProjectList(compensationRetireeSubsidyProject);
    }

    /**
     * 新增退休人员补贴项目设置
     *
     * @param compensationRetireeSubsidyProject 退休人员补贴项目设置
     * @return 结果
     */
    @Override
    public int insertCompensationRetireeSubsidyProject(CompensationRetireeSubsidyProject compensationRetireeSubsidyProject)
    {
        return compensationRetireeSubsidyProjectMapper.insertCompensationRetireeSubsidyProject(compensationRetireeSubsidyProject);
    }

    /**
     * 修改退休人员补贴项目设置
     *
     * @param compensationRetireeSubsidyProject 退休人员补贴项目设置
     * @return 结果
     */
    @Override
    public int updateCompensationRetireeSubsidyProject(CompensationRetireeSubsidyProject compensationRetireeSubsidyProject)
    {
        return compensationRetireeSubsidyProjectMapper.updateCompensationRetireeSubsidyProject(compensationRetireeSubsidyProject);
    }

    /**
     * 批量删除退休人员补贴项目设置
     *
     * @param subsidyprojectIds 需要删除的退休人员补贴项目设置主键
     * @return 结果
     */
    @Override
    public int deleteCompensationRetireeSubsidyProjectBySubsidyprojectIds(Long[] subsidyprojectIds)
    {
        return compensationRetireeSubsidyProjectMapper.deleteCompensationRetireeSubsidyProjectBySubsidyprojectIds(subsidyprojectIds);
    }

    /**
     * 删除退休人员补贴项目设置信息
     *
     * @param subsidyprojectId 退休人员补贴项目设置主键
     * @return 结果
     */
    @Override
    public int deleteCompensationRetireeSubsidyProjectBySubsidyprojectId(Long subsidyprojectId)
    {
        return compensationRetireeSubsidyProjectMapper.deleteCompensationRetireeSubsidyProjectBySubsidyprojectId(subsidyprojectId);
    }

    @Override
    public List<CompensationRetireeSubsidyProject> getAllFloatingItems() {
        return compensationRetireeSubsidyProjectMapper.getAllFloatingItems();
    }
}
